package one.stand.mapper;

import one.stand.entity.WxNoticeEntity;
import one.stand.model.CommentModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface CommentMapper {
    int deleteByPrimaryKey(Integer commentId);

    int insert(CommentModel record);

    int insertSelective(CommentModel record);

    CommentModel selectByPrimaryKey(Integer commentId);

    List<CommentModel> select(CommentModel record);

    WxNoticeEntity getSendTemplateInfo(Integer commentId);

    int updateByPrimaryKeySelective(CommentModel record);

    int updateByPrimaryKey(CommentModel record);

    /**
     * 统计回复次数
     * @param myCardId
     * @param userId
     * @return
     */
    Long count(@Param("myCardId") Long myCardId, @Param("userId") Long userId);

    Long count(CommentModel model);
}